@extends("home.layouts")

@section("content")
	<div class="container">
    <h3>商品对比</h3>
    @if(!empty($datas))
    <table class="table table-bordered">
      <tr>
        
        @foreach(config('comparefield.compare_field') as $k => $v)
          <tr>
            <td>{{$v}}</td>
            @foreach($datas as  $v)
              <td>{{strip_tags($k == 'brand' ? '' : $v->$k??'')}}</td>
            @endforeach
          </tr>
        @endforeach
      </tr>
    </table>
    @endif
  </div>
@endsection